package com.htzos.admin.system.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.htzos.admin.system.bean.SystemDictionary;
import com.htzos.admin.system.dao.SystemDictionaryMapper;
import com.htzos.common.tool.ExtQueryBean;
@Service
@Transactional(rollbackFor = Exception.class)
public class SystemDictionaryService {
    @Autowired
    SystemDictionaryMapper systemDictionaryMapper;
    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public List<SystemDictionary> systemDictionaryList(SystemDictionary systemDictionary, ExtQueryBean extQuery){
       return systemDictionaryMapper.systemDictionaryList(systemDictionary, extQuery);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public Integer systemDictionaryTotal(SystemDictionary systemDictionary, ExtQueryBean extQuery){
       return systemDictionaryMapper.systemDictionaryTotal(systemDictionary, extQuery);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int systemDictionaryUpdate(SystemDictionary systemDictionary){
       return systemDictionaryMapper.systemDictionaryUpdate(systemDictionary);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int systemDictionaryInsert(SystemDictionary systemDictionary){
       return systemDictionaryMapper.systemDictionaryInsert(systemDictionary);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int systemDictionaryDelete(SystemDictionary systemDictionary){
       return systemDictionaryMapper.systemDictionaryDelete(systemDictionary);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public SystemDictionary systemDictionaryGet(String id){
       return systemDictionaryMapper.systemDictionaryGet(id);
    }
}